package com.xc.pattern.memento;

/**
 * @author xingchen
 * @description
 * @create 2022-09-11 21:54
 */
public class RoleStateMemento {

    /**
     * 生命力
     */
    private int live;


    /**
     * 攻击力，会上涨
     */
    private int attack;

    public RoleStateMemento(int live, int attack) {
        this.live = live;
        this.attack = attack;
    }

    public int getLive() {
        return live;
    }

    public void setLive(int live) {
        this.live = live;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }
}
